package com.hw.dagl.dao.impl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.stereotype.Repository;

import com.hw.dagl.model.Frm_Code;
import com.hw.dagl.model.Sys_Menu;
import com.hw.dao.orm.hibernate.SimpleHibernateDao;
import com.hw.dao.utils.OraclePageDaoBase;
@Repository
public class FrmCodeDaoImpl extends SimpleHibernateDao<Sys_Menu, String>{
	
	@Resource
	private OraclePageDaoBase oraclePageDaoBase;
	
	/**
	 * 通过dmlbh和xtlb获取frm_code信息
	 */
	public List<Frm_Code> selectEntityList(Frm_Code frm_Code){
	    String sql="SELECT T.* FROM FRM_CODE T WHERE 1 = 1 AND T.DMLB = '"+frm_Code.getDmlb()+"' AND T.XTLB = '"+frm_Code.getXtlb()+"'";
	    return oraclePageDaoBase.query(sql, new BeanPropertyRowMapper<Frm_Code>(Frm_Code.class));
	}
	
}
